package com.easy.util;

public class Page<T> {
    private int page=-1;
    private int size=-1;
    private T data;

    public Page() {
    }

    public Page(int page, int size, T data, int start) {
        this.page = page;
        this.size = size;
        this.data = data;
        this.start = start;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    private int start;

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getStart() {
        return (page-1)*size;
    }

    public void setStart(int start) {
        this.start = start;
    }
}
